package com.cenwangkeji.resident.ui.adapter;

import android.support.annotation.Nullable;

import com.cenwangkeji.resident.R;
import com.cenwangkeji.resident.model.bean.TestingBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * @松 on 2019/11/5 09:15
 */
public class TestingAdapter extends BaseQuickAdapter<TestingBean.DataBean, BaseViewHolder> {
    public TestingAdapter( @Nullable List<TestingBean.DataBean> data) {
        super(R.layout.item_testing, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, TestingBean.DataBean item) {
        helper.setText(+R.id.tv_blood_pressure,"血压："+item.getXy());//血压
        helper.setText(R.id.tv_weight,"体重："+item.getTz());
        helper.setText(R.id.blood_glucose, "血糖："+item.getXt());
        helper.setText(R.id.heart_rate,"心率："+ item.getXl());
    }


}
